package cn.fws.meap.community.mapper;

import cn.fws.meap.community.entity.ProblemResources;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

/**
 * 资源关联表
 *
 * @author chenkh
 * @date 2019-03-07
 */
@Mapper
public interface ProblemResourcesMapper {

    public boolean insert(ProblemResources problemResources);

    public boolean insertList(List<ProblemResources> problemResourcesList);

    /**
     *根据文章ID获取所有中间表资源ID
     *
     * @param
     * @return 结果
     */
    public String[] getResourcesIdByArticleId(String articleId);

    /**
     *根据资源ID删除
     *
     * @param
     * @return 结果
     */
    public void deleteByResourcesId(String id);

    /**
     *根据文章ID删除
     *
     * @param
     * @return 结果
     */
    public void deleteByArticleId(String id);
}
